package com.buaa.airticketbookingsystem.Dao;

import com.buaa.airticketbookingsystem.Entity.PurchaseRecord;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

@Mapper
public interface PurchaseRecordDao {
    public void addNewPurchaseRecord(PurchaseRecord purchaseRecord);
    public void setTicketPurchased(String t_id);
    public void deletePurchaseRecordByIdAndEmail(String wcnm, String email);
    public List<PurchaseRecord> getAllPurchaseRecordByUser(String email);
    public PurchaseRecord getPurchaseRecordByAll(String email, String t_id);
    public PurchaseRecord getPurchaseRecordByNo(String no);
    public void payPurchaseRecord(String no);
    public void refund(String no);
    public void delPR(String no);
}
